package com.sq.partner.manager.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.TradPlanSaleDao;
import com.sq.partner.manager.mybatis.model.TradPlanSale;
import com.sq.partner.manager.mybatis.model.TradSaleAgent;
import com.sq.partner.manager.service.IGatewayClearCacheManager;
import com.sq.partner.manager.service.TradPlanSaleService;

/**
 * 
 * @author menyanlei
 *
 */
@Service
public class TradPlanSaleServiceImpl implements TradPlanSaleService{

	@Resource
	private TradPlanSaleDao tradPlanSaleDao;

	@Override
	public List<TradPlanSale> queryTrade(Map<String, String> map)
			throws SQLException {
		// TODO Auto-generated method stub
		return tradPlanSaleDao.queryTrade(map);
	}

	@Override
	public void deleteTrade(Map<String, String> map) throws Exception {
		tradPlanSaleDao.deleteTrade(map);
	}

	@Override
	public boolean addTrade(List<TradPlanSale> tradPlanSale) {
		return tradPlanSaleDao.addTrade(tradPlanSale);
	}

	@Override
	public List<Map<String, Object>> impNlifeSale(Map<String, Object> map)
			throws Exception {
		return tradPlanSaleDao.impNlifeSale(map);
	}
	@Override
	public List<TradPlanSale> searchTradPlanSalesByplanCode(
			Map<String, Object> maps) throws Exception {
		// TODO Auto-generated method stub
		return tradPlanSaleDao.searchTradPlanSalesByplanCode(maps);
	}

	@Override
	public List<Map<String, Object>> searchTradSaleAgentsByplanCode(
			Map<String, Object> maps) throws Exception {
		// TODO Auto-generated method stub
		return tradPlanSaleDao.searchTradSaleAgentsByplanCode(maps);
	}

}
